<#include "ftls/menubutton.ftl" />
<#include "ftls/spring.ftl"/>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><@message "title"/></title>
<script type="text/javascript" src="static/jmax/js/import.js"></script>
<script type="text/javascript">
//导入首页启动时需要的相应资源文件(首页相应功能的 js 库、css样式以及渲染首页界面的 js 文件)
importJS('static/jmax/js/index.js');
importCSS('static/jmax/css/index.css');
importJS('static/jmax/js/index-startup.js');
importJS('static/plugins/Highcharts-4.0.4/js/highcharts.js');
importCSS('static/plugins/dhtmlx/codebase/dhtmlx.css');
importJS('static/plugins/dhtmlx/codebase/dhtmlx.js');
importJS('static/hotel/js/hotel.js');
</script>
<link rel="shortcut icon" href="static/jmax/images/favicon.png">
</head>
<body>
	
    <div id="maskContainer">
        <div class="datagrid-mask" style="display: block;"></div>
        <div class="datagrid-mask-msg" style="display: block; left: 50%; margin-left: -52.5px;">
            正在加载...
        </div>
    </div>

    <div id="mainLayout" class="easyui-layout hidden" data-options="fit: true">
        <div id="northPanel" data-options="region: 'north', border: false" style="height: 80px; overflow: hidden;">
            <div id="topbar" class="top-bar">
                <div class="top-bar-left">
                    <h1 style="margin-left: 10px; margin-top: 10px;"><@message "title"/></h1>
                </div>
                <div class="top-bar-right">
                    <div id="timerSpan"></div>
                    <div id="themeSpan">
<!--                         <span>更换皮肤风格：</span> -->
<!--                         <select id="themeSelector"></select> -->
                        <a id="btnHideNorth" class="easyui-linkbutton" data-options="plain: true, iconCls: 'layout-button-up'"></a>
                    </div>
                </div>
            </div>
            <div id="toolbar" class="panel-header panel-header-noborder top-toolbar">
                <div id="infobar">
                    <@loadMenu menus />
                </div>
                <div id="buttonbar">
<!--             	    <a id="btnContact" class="easyui-linkbutton" data-options="plain: true, iconCls: 'icon-hamburg-archives', ">关于平台</a> -->
                    <a id="btnUpdatePwd" class="easyui-linkbutton" data-options="plain: true, iconCls: 'icon-key-go', ">更改密码</a>
                    <a id="btnFullScreen" class="easyui-linkbutton" data-options="plain: true, iconCls: 'icon-standard-arrow-inout'">全屏切换</a>
                    <a id="btnExit" class="easyui-linkbutton" data-options="plain: true, iconCls: 'icon-hamburg-sign-out'">退出系统</a>
                    <a id="btnShowNorth" class="easyui-linkbutton" data-options="plain: true, iconCls: 'layout-button-down'" style="display: none;"></a>
                </div>
            </div>
        </div>

        <div data-options="region: 'center'" style="padding: 1px;">
            <div id="mainTabs" class="easyui-tabs" data-options="fit: true, border: true, showOption: true, enableNewTabMenu: true, tools: '#mainTabs_tools', enableJumpTabMenu: true, onSelect: function (title, index) { window.mainpage.mainTabs.updateHash(index); }">
<!-- 				<div id="roomMonitorPanel" data-options="title: '客房监控', iconCls: 'icon-hamburg-home',href:'room.do?monitorRoom'"> -->
<!-- 				</div> -->
<!--                 <div id="homePanel" data-options="title: '主页', iconCls: 'icon-hamburg-home'"> -->
<!--                     <div class="easyui-layout" data-options="fit: true"> -->
<!--                         <div data-options="region: 'center', border: false" style="padding: 10px;"> -->
<!--                            <h1>Welcome To JMax！</h1> -->
<!-- 							&nbsp;&nbsp; -->
<!-- 							<div style="color: green;"> -->
<!-- 								<span style="color: green;">平台访问量：</span><span style="color:red ;">${LOGINPAGE?default("0")}</span>&nbsp;&nbsp; -->
<!-- 								<span style="color: green;">论坛访问量：</span><span style="color: red;">${PORTALPAGE?default("0")}</span> -->
<!-- 							</div> -->
<!-- 							<p style="font-size: 20px;"> -->
<!--                            jmax平台注重半智能化开发过程，简单CRUD平台自动构建生成，复杂业务手动实现，从而达到模块功能从前端到后端代码自动速成，减少重复开发工作，提高企业开发效率。 -->
<!-- 						   <br/> <br/>      -->
<!-- 						        平台基础功能有： -->
<!-- 						   <br/> -->
<!-- 							1、功能更权限管理控制，基于不同用户不同角色，权限限制； <br/> -->
<!-- 							2、系统会话监控，日志记录及数据字典定义； <br/> -->
<!-- 							3、报表管理，根据业务，自定义配置报表导出及图表显示； <br/> -->
<!-- 							4、敏捷开发，基于平台规范模版，快速开发； <br/> -->
<!-- 							5、案例演示； <br/> <br/> -->
<!-- 							目前已完成两个案例：分别是商城管理（代码未上传，待整合）和论坛管理； <br/> <br/> -->
<!-- 						        作用： <br/> -->
<!-- 						        基于jmax平台可以开发相关系统有：酒店管理系统、商城管理系统、门禁管理系统、企业内部管理系统、订单管理系统、库存管理系统等； <br/> <br/> -->
<!-- 						   QQ联系方式:358744287 <img src="static/jmax/images/max-qq.png" width="150px"/> -->
<!-- 						       微信：<img src="static/jmax/images/max-wx.png" width="150px"/> -->
<!--                            </p> -->
<!--                         </div> -->
<!--                     </div> -->
<!--                 </div> -->
            </div>
        </div>

<!--         <div data-options="region: 'east', title: '日历', iconCls: 'icon-standard-date', split: false,collapsed: true,  minWidth: 200, maxWidth: 500" style="width: 220px; padding: 1px; border-left-width: 0px;"> -->
<!--             <div id="eastLayout" class="easyui-layout" data-options="fit: true"> -->
<!--                 <div data-options="region: 'north', split: false, border: false" style="height: 220px;"> -->
<!--                     <div class="easyui-calendar" data-options="fit: true"></div> -->
<!--                 </div> -->
<!--                 <div id="linkPanel" data-options="region: 'center', title: '友情链接', iconCls: 'icon-hamburg-link', tools: [{ iconCls: 'icon-hamburg-refresh', handler: function () { window.link.reload(); } }]"> -->
<!--                     <ul id="linkList" class="portlet-list link-list"> -->
<!-- 						<li> -->
<!-- 							<span style="font-weight: bold;">作者(Max)</span> <br /> -->
<!-- 							<a href="http://java4ever.iteye.com" target="_blank">http://java4ever.iteye.com</a> -->
<!-- 						</li> -->
<!-- 					</ul> -->
<!--                 </div> -->
<!--             </div> -->
<!--         </div> -->

        <div data-options="region: 'south', title: '关于...', iconCls: 'icon-standard-information', collapsed: true, border: false" style="height: 70px;">
            <div style="color: #4e5766; padding: 6px 0px 0px 0px; margin: 0px auto; text-align: center; font-size:12px; font-family:微软雅黑;">
                @2013-2015 Copyright Max <a href="mailto:358744287@qq.com" target="_blank" style="text-decoration: none;">358744287@qq.com</a>&nbsp;&nbsp;|&nbsp;&nbsp;
                <a href="#" target="_blank" style="text-decoration: none;">关于JMax</a><br />
                建议使用&nbsp;
                <a href="http://windows.microsoft.com/zh-CN/internet-explorer/products/ie/home" target="_blank" style="text-decoration: none;">IE(Version 9/10/11)</a>/
                <a href="https://www.google.com/intl/zh-CN/chrome/browser/" target="_blank" style="text-decoration: none;">Chrome</a>/
                <a href="http://firefox.com.cn/download/" target="_blank" style="text-decoration: none;">Firefox</a>
                &nbsp;系列浏览器。
                <script type="text/javascript">
//                     var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
//                     document.write(unescape("%3Cspan id='cnzz_stat_icon_5654850'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s9.cnzz.com/stat.php%3Fid%3D5654850%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));
                </script>
            </div>
        </div>


    </div>
    <script type="text/javascript">
    $(function() {
//     	window.mainpage.clickMenuAddModelTab('61','订单管理','60','tranOrder.do?tranOrder','icon-save',false);
    	printLog('main load');
    	window.setTimeout(function() {
//     		window.mainpage.clickMenuAddModelTab('2','客房监控','1','room.do?monitorRoom','icon-hamburg-home',false);
    		window.mainpage.clickMenuAddModelTab("999999","客房监控","999999","room.do?monitorRoom","icon-hamburg-home",false,false);
    	} , 50);
//     	$('#mainTabs').tabs("onSelect", function(title,index) {
//     		if(index==0) {
//     			showMsg(title);
//     		}
//     	});
    	//     	var monitorOptions = {
//             title: "新建选项卡", href: "room.do?monitorRoom", iniframe: true, closable: false, refreshable: true, iconCls: "icon-hamburg-home",
//         }
    	
//     	window.mainpage.addModuleTab(monitorOptions);
    });

//     
    </script>
</body>
</html>